#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

void test01() {
	vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	v.push_back(5);

	vector<int>::iterator phead = v.begin();
	vector<int>::iterator ptail = v.end();

	vector<int>::iterator pcur = phead;
	for (pcur; pcur != ptail; pcur++) {
		cout << *pcur << endl;
	}

}

int main() {
	test01();
	return 0;
}